package cn.easybuy.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

@Data
public class OrderDetail implements Serializable{

    @TableId(type = IdType.AUTO)
    private Integer id;//ID
    private Integer orderId;//订单ID
    private Integer quantity;//数量
    private Float cost;//单价
    private Integer productId;//商品id

    @TableField(exist = false)
    private Product product;//商品

}
